package com.huitone.smspfm.core.wransms;

import java.io.Serializable;
import java.util.List;

import com.huitone.smspfm.dao.oracle.entity.WarnRecv;

public class SmsWarnRecvMessage  implements Serializable{
	private static final long serialVersionUID = -1L;
	private String templateId;
	private List<WarnRecv> users; //接收人信息
	private String smcont;//消息内容
	
	public SmsWarnRecvMessage(){}
	
	public SmsWarnRecvMessage(List<WarnRecv> users, String mContent ,String tempId) {
		this.users = users;
		this.smcont = mContent;
		this.templateId = tempId;
	}
	
	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public List<WarnRecv> getUsers() {
		return users;
	}
	public void setUsers(List<WarnRecv> users) {
		this.users = users;
	}
	public String getSmcont() {
		return smcont;
	}
	public void setSmcont(String smcont) {
		this.smcont = smcont;
	}
	
	public void copy(SmsWarnRecvMessage obj) {
		this.setSmcont(obj.getSmcont());
		this.setUsers(obj.getUsers());	
		this.setTemplateId(obj.getTemplateId());
	}
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("smcont: ").append(this.smcont).append(", ")
		.append("User : [ ");
		for(int i = 0; i < this.users.size() ; i++){
			sb.append(this.users.get(i).getPhone()).append(", ");
		}
		sb.append(" ]");
		return sb.toString();
	}
	
	
	
}
